# -*- encoding:utf-8 -*-
# @Time: 2022/12/17 16:39
# @Author: ruanzhen
# @Email: ruanzhen@maqu.com
# @File: serializers.py
# @Software: PyCharm


from rest_framework import serializers


class StudentSerializer(serializers.Serializer):
    id = serializers .CharField(label='ID',read_only=True)
    name = serializers .CharField(label='姓名', max_length=30)
    age = serializers .IntegerField(label='年龄',required=False)
    sex = serializers .IntegerField (label='性别',required=False)
    create_time = serializers.DateTimeField(label='创建时间',required=False)
    update_time = serializers.DateTimeField(label='更新时间',required=False)
    is_delete = serializers .BooleanField(label='逻辑删除',default=False,required=False)
